package com.zhengshang.api.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhengshang.common.annotation.Excel;
import com.zhengshang.common.core.domain.BaseEntity;

/**
 * 余额变更记录对象 app_balance_record
 *
 * @author zhengshang
 * @date 2021-03-19
 */
public class AppBalanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 变动用户ID */
    @Excel(name = "变动用户ID")
    private Long userId;

    /** 变动金额 */
    @Excel(name = "变动金额")
    private BigDecimal money;


    /** 用户名 */
    private String userName;

    /** 变更后余额 */
    @Excel(name = "变更后余额")
    private BigDecimal modifyAfterBalance;

    /** 变更类型（1增加，2减少） */
    @Excel(name = "变更类型", readConverterExp = "1=增加，2减少")
    private String modifyType;

    /** 变更来源（1签到，2连续签到奖励，3福利社提现，4提现申请，5提现驳回，6下级会员收益，7下下级会员收益） */
    @Excel(name = "变更来源", readConverterExp = "1签到，2连续签到奖励，3福利社提现，4提现申请，5提现驳回，6下级会员收益，7下下级会员收益")
    private String modifySource;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setMoney(BigDecimal money)
    {
        this.money = money;
    }

    public BigDecimal getMoney()
    {
        return money;
    }
    public void setModifyAfterBalance(BigDecimal modifyAfterBalance)
    {
        this.modifyAfterBalance = modifyAfterBalance;
    }

    public BigDecimal getModifyAfterBalance()
    {
        return modifyAfterBalance;
    }
    public void setModifyType(String modifyType)
    {
        this.modifyType = modifyType;
    }

    public String getModifyType()
    {
        return modifyType;
    }
    public void setModifySource(String modifySource)
    {
        this.modifySource = modifySource;
    }

    public String getModifySource()
    {
        return modifySource;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("money", getMoney())
                .append("modifyAfterBalance", getModifyAfterBalance())
                .append("modifyType", getModifyType())
                .append("modifySource", getModifySource())
                .append("userName", getUserName())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }
}